home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmRand
- Caption = "Football Pool"
- ClientHeight = 5430
- ClientLeft = 1080
- ClientTop = 1230
- ClientWidth = 7380
- Height = 5835
- Left = 1020
- LinkTopic = "Form1"
- ScaleHeight = 5430
- ScaleWidth = 7380
- Top = 885
- Width = 7500
- Begin CommandButton Command1
- Caption = "Insert Numbers"
- Height = 495
- Left = 5760
- TabIndex = 3
- Top = 4440
- Width = 1455
- End
- Begin TextBox Text1
- BorderStyle = 0 'None
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 1335
- Left = 6000
- MultiLine = -1 'True
- TabIndex = 2
- Text = "AFC"
- Top = 1800
- Width = 375
- End
- Begin Grid Grid1
- Cols = 14
- FixedCols = 0
- FixedRows = 0
- Height = 5000
- Left = 240
- Rows = 14
- TabIndex = 0
- Top = 480
- Width = 5000
- End
- Begin Label Label1
- AutoSize = -1 'True
- Caption = "NFC"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 435
- Left = 2280
- TabIndex = 1
- Top = 0
- Width = 975
- End
- Option Explicit
- Sub Command1_Click ()
- Dim cnt As Integer
- Dim cnt2 As Integer
- Dim cnt3 As Long
- Dim num As Integer
- For cnt = 0 To 3
- Grid1.Row = cnt
- ReDim CntArray(9) As Integer
- For cnt2 = 0 To 9
- Grid1.Col = cnt2
- cnt3 = cnt3 + 1
- num = Int(Rnd * 10)
- Loop While CntArray(num) = True
- CntArray(num) = True
- Grid1.Text = num
- Next cnt2
- Next cnt
- For cnt = 10 To 13
- Grid1.Col = cnt
- ReDim CntArray(9) As Integer
- For cnt2 = 4 To 13
- Grid1.Row = cnt2
- cnt3 = cnt3 + 1
- num = Int(Rnd * 10)
- Loop While CntArray(num) = True
- CntArray(num) = True
- Grid1.Text = num
- Next cnt2
- Next cnt
- End Sub
- Sub Form_Load ()
- Dim cnt As Integer
- For cnt = 0 To 13
- Grid1.ColWidth(cnt) = 330
- Grid1.RowHeight(cnt) = 330
- Next cnt
- End Sub
-